home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1996 April
/
MacFormat CD Edition MF36 (April 1996).iso
/
Floppy
/
MacFormat Floppy Archive
/
MacFormat 30
/
Gossamer 2.0
/
Sample Objects
/
DBLCONE.PLG
< prev
next >
Wrap
Text File
|
1993-05-13
|
1KB
|
50 lines
# an octagonal cone visible from the outside, 1000x1000
octout 10 16
# vertices:
# X Y Z
# center ring
-190 -460 0 #VTX 0 # vertex 0
190 -460 0 #VTX 1 # vertex 1
460 -190 0 #VTX 2 # vertex 2
460 190 0 #VTX 3 # vertex 3
190 460 0 #VTX 4 # vertex 4
-190 460 0 #VTX 5 # vertex 5
-460 190 0 #VTX 6 # vertex 6
-460 -190 0 #VTX 7 # vertex 7
# points
0 0 500 #VTX 8 # vertex 8
0 0 -500 #VTX 9 # vertex 9
# polygons: all cosine-lit, assorted colors
# color #verts vert1 vert2 ...
# far cone
# these faces are facing us in the sketch, thus are CCW
0x12ff 3 5 4 8 # top
0x13ff 3 4 3 8
0x14ff 3 3 2 8
# these faces are away from us in the sketch, and thus CW
0x15ff 3 2 1 8
0x16ff 3 1 0 8
0x17ff 3 0 7 8
0x18ff 3 7 6 8
0x19ff 3 6 5 8
# near cone: could be produced mechanically by copying the far cone
# polys, changing vertex 8 to 9, and reversing the order of the
# other 2 vertices (because the z axis is reversed we must also
# reverse the order of vertices)
0x19ff 3 4 5 9 # top
0x18ff 3 3 4 9
0x17ff 3 2 3 9
0x16ff 3 1 2 9
0x15ff 3 0 1 9
0x14ff 3 7 0 9
0x13ff 3 6 7 9
0x12ff 3 5 6 9